package com.cos.shop.dao;

import com.cos.shop.entity.Address;

import java.sql.SQLException;
import java.util.List;

public interface AddressDao {

    List<Address> getUserAddress(int uid) throws SQLException;

    int addUserAddress(Address a) throws SQLException;

    int deleteAddress(int aid) throws SQLException;

    int updateAddress(Address a) throws SQLException;

    int setAllState(int uid) throws SQLException;

    int setDefaultAddress(int aid) throws SQLException;

}
